package demo;

public class VarArrayImpl implements VarArray {

	//属性
	private int[] container;
	private int size; //有效元素的个数
	private int capacity; //默认数据容量
	
	public VarArrayImpl() {
		/*
		 * this.capacity = 16; //当用户不给参数时，我们假定容量为 16 this.container = new
		 * int[this.capacity]; //初始化容器数组 this.size = 0;
		 */
		this(16);
	}
	
	public VarArrayImpl(int capacity) {
		//传入一个容量
		this.capacity = capacity;
		this.container = new int[this.capacity]; //初始化容器数组
		this.size = 0;
	}
	
	@Override
	public boolean add(int data) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean remove(int data) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int find(int data) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int find(int data, int start, int end) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public boolean update(int oldData, int newData) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int size() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void clear() {
		// TODO Auto-generated method stub

	}

	@Override
	public void printData() {
		// TODO Auto-generated method stub

	}

}
